﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<JobDescOnline.Presentation.Models.JobTitle>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Job Title - Review JobDesc!
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="SideMenu" runat="server">
    <% Html.RenderPartial("MasterDataMenu"); %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Jabatan - Data Baru!</h2>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Create", "JobTitle", FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Informasi Umum</legend>
            <table>
                <tr>
                    <td><%: Html.LabelFor(model => model.CreatedBy) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.CreatedBy, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.CreatedBy) %>
                    </td>
                    <td><%: Html.LabelFor(model => model.CreatedOn) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.CreatedOn, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.CreatedOn) %>
                    </td>
                </tr>
                <tr>
                    <td><%: Html.LabelFor(model => model.LastModifiedBy) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.LastModifiedBy, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.LastModifiedBy) %>
                    </td>
                    <td><%: Html.LabelFor(model => model.LastModifiedOn) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.LastModifiedOn, new { @readonly = "readonly" })%>
                        <%: Html.ValidationMessageFor(model => model.LastModifiedOn) %>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend>Data Jabatan</legend>

            <table>
                <tr>
                    <td><%: Html.LabelFor(model => model.Rowstatus) %></td>
                    <td>
                        <%: Html.DropDownList("Rowstatus", (IEnumerable<SelectListItem>)HttpContext.Current.Application["Active"], "--Select One--")%>
                        <%: Html.ValidationMessageFor(model => model.Rowstatus) %>
                    </td>
                    <td><%: Html.LabelFor(model => model.DepartmentID) %></td>
                    <td>
                        <%: Html.DropDownList("DepartmentID", (IEnumerable<SelectListItem>)HttpContext.Current.Application["ComboDepartment"], "--Select One--")%>
                        <%: Html.ValidationMessageFor(model => model.DepartmentID)%>
                    </td>
                </tr>
                <tr>
                    <td><%: Html.LabelFor(model => model.Description) %></td>
                    <td colspan="3">
                        <%: Html.TextBoxFor(model => model.Description, new { style="width: 300px" })%>
                        <%: Html.ValidationMessageFor(model => model.Description) %>
                    </td>
                </tr>
                <tr>
                    <td><%: Html.LabelFor(model => model.MinEducation) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.MinEducation, new { style = "width: 300px" })%>
                        <%: Html.ValidationMessageFor(model => model.MinEducation)%>
                    </td>
                    <td><%: Html.LabelFor(model => model.Major) %></td>
                    <td>
                        <%: Html.TextBoxFor(model => model.Major, new { style = "width: 300px" })%>
                        <%: Html.ValidationMessageFor(model => model.Major) %>
                    </td>
                </tr>
                <tr>
                    <td><%: Html.LabelFor(model => model.ImageOrganization) %></td>
                    <td colspan="3"><input type="file" name="ImageOrganization" /></td>
                </tr>
            </table>
        </fieldset>

        <fieldset>
            <legend><%: Html.LabelFor(model => model.MinExperience) %></legend>
            <%: Html.TextAreaFor(model => model.MinExperience, new { style = "width: 900px" })%>
            <%: Html.ValidationMessageFor(model => model.MinExperience) %>
        </fieldset>

        <fieldset>
            <legend><%: Html.LabelFor(model => model.WorkingExperience) %></legend>
            <%: Html.TextAreaFor(model => model.WorkingExperience, new { style = "width: 900px" })%>
            <%: Html.ValidationMessageFor(model => model.WorkingExperience)%>
        </fieldset>

        <fieldset>
            <legend><%: Html.LabelFor(model => model.Specification) %></legend>
            <%: Html.TextAreaFor(model => model.Specification, new { style = "width: 900px" })%>
            <%: Html.ValidationMessageFor(model => model.Specification) %>
        </fieldset>

        <fieldset>
            <legend><%: Html.LabelFor(model => model.FunctionalCompetency) %></legend>
            <%: Html.TextAreaFor(model => model.FunctionalCompetency, new { style = "width: 900px" })%>
            <%: Html.ValidationMessageFor(model => model.FunctionalCompetency) %>
        </fieldset>

        <fieldset>
            <legend><%: Html.LabelFor(model => model.Challenge) %></legend>
            <%: Html.TextAreaFor(model => model.Challenge, new { style = "width: 900px" }) %>
            <%: Html.ValidationMessageFor(model => model.Challenge) %>
        </fieldset>

        <fieldset>
            <legend><%: Html.LabelFor(model => model.Authority) %></legend>
            <%: Html.TextAreaFor(model => model.Authority, new { style = "width: 900px" })%>
            <%: Html.ValidationMessageFor(model => model.Authority) %>
        </fieldset>

        <p><input type="submit" value="Simpan" /></p>
    <% } %>

    <div><%: Html.ActionLink("Kembali", "Index") %></div>
</asp:Content>